#/bin/sh
jarfile=./org.eclipse.swt.gtk.linux.aarch64_3.129.0.v20250221-1734.jar
newjar=./org.eclipse.swt.gtk.linux.loongarch64_3.129.0.v20250221-1734.jar
mkdir -p temp && cd temp
jar xf ../$jarfile
cp -f ../org.eclipse.swt.gtk.linux.loongarch64/META-INF/MANIFEST.MF META-INF/
cp -f ../org.eclipse.swt.gtk.linux.loongarch64/fragment.properties ./
cp -f ../org.eclipse.swt.gtk.linux.loongarch64/*.so ./
rm META-INF/ECLIPSE_*
jar cfm ../$newjar META-INF/MANIFEST.MF .
cd ../
rm -rf ./temp